# Contributor: Sol Fisher Romanoff <sol@solfisher.com>
# Maintainer: Sol Fisher Romanoff <sol@solfisher.com>
pkgname=portsmf
pkgver=239
pkgrel=0
pkgdesc="C++ library for reading and writing Standard MIDI Files"
url="https://github.com/tenacityteam/portsmf"
arch="all"
license="MIT"
makedepends="cmake"
subpackages="$pkgname-dev"
options="!check" # No testsuite
source="$pkgname-$pkgver.tar.gz::https://github.com/tenacityteam/portsmf/archive/refs/tags/$pkgver.tar.gz"

build() {
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_BUILD_TYPE=None \
		-S . -B build
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
5908ef79043b44f90da8286d639a0693334f160454d206f4a212fe958a7a2e19cbc18e4240e191c1678690f34976c5e0d34dcb030d7bab007ee528fbb5e19486  portsmf-239.tar.gz
"
